package icu.sunway.gushenBlogBackEnd.Service;

import com.baomidou.mybatisplus.extension.service.IService;
import icu.sunway.gushenBlogBackEnd.Entity.Data.LikeDO;
import icu.sunway.gushenBlogBackEnd.Entity.View.ResultVO;

import java.util.List;

public interface LikeService extends IService<LikeDO> {
    ResultVO<Boolean> addLike(String article_id, String token);

    ResultVO<Boolean> removeLike(String id);

    ResultVO<List<LikeDO>> getLikeList();

    ResultVO<Long> getLikeCountFromArticle(String article_id);

    ResultVO<Boolean> checkIsLiked(String article_id, String token);

    ResultVO<Boolean> removeLikeFromArticle(String article_id, String token);

    ResultVO<List<LikeDO>> getLikeListByUser(String token);

    ResultVO<Long> getLikeCountFromUser(String token);

    ResultVO<List<LikeDO>> getLikeListByUserByPage(String token, int curPage, int pageSize);
}
